#!/bin/bash

read -p "请输入用户名" name

u_id=$(id -u $name)
g_id=$(id -g $name)

if [ $u_id -eq $g_id ];then
	echo "good"
else
	echo "bad"
fi

